import request from '@/utils/request'

// 查询拼团管理列表
export function listGroupmanage(query) {
  return request({
    url: '/ruoyi-manage/groupmanage/pageshow',
    method: 'get',
    params: query
  })
}

// 查询拼团管理详细
export function getGroupmanage(id) {
  return request({
    url: '/ruoyi-manage/group/' + id,
    method: 'get'
  })
}

// 新增拼团管理
export function addGroupmanage(data) {
  return request({
    url: '/system/groupmanage',
    method: 'post',
    data: data
  })
}

// 修改拼团管理
export function updateGroupmanage(id,groupStatus) {
  return request({
    url: '/ruoyi-manage/groupmanage/updatestatus',
    method: 'put',
    params: {
      id:id,
      groupStatus:groupStatus
    }
  })
}

// 删除拼团管理
export function delGroupmanage(id) {
  return request({
    url: '/system/groupmanage/' + id,
    method: 'delete'
  })
}
//查询
export function itemGroup0(query) {
  return request({
    url: '/ruoyi-manage/group/leadergroup',
    method: 'get',
    params: query
  })
}
